<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "t_forum_topic_status".
 *
 * @property string $id
 * @property string $topic_id
 * @property string $status 更改状态
 * @property string $preposition_status
 * @property string $create_by
 * @property string $create_time
 * @property string $validity_period_until
 * @property string $del_flag
 */
class TForumTopicStatus extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 't_forum_topic_status';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['id'], 'required'],
            [['create_time', 'validity_period_until'], 'safe'],
            [['id', 'topic_id', 'create_by'], 'string', 'max' => 36],
            [['status', 'preposition_status'], 'string', 'max' => 255],
            [['del_flag'], 'string', 'max' => 1],
            [['id'], 'unique'],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'topic_id' => 'Topic ID',
            'status' => 'Status',
            'preposition_status' => 'Preposition Status',
            'create_by' => 'Create By',
            'create_time' => 'Create Time',
            'validity_period_until' => 'Validity Period Until',
            'del_flag' => 'Del Flag',
        ];
    }
}
